package com.yuanfengPlus.purchase.dao;

import com.yuanfengPlus.purchase.entity.PurchaseOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
@Mapper
public interface IPurchaseOrderDao {
    //    条件查询
    List<PurchaseOrder> queryPurchaseOrder(Map<String ,Object> params);
    //    新增订单
    int addPurchaseOrder(PurchaseOrder purchaseOrder);
    //    查看单条订单
    PurchaseOrder queryPurchaseOrderById(String purchase_order_id);
    //    修改单条订单
    int updatePurchaseOrderById(PurchaseOrder purchaseOrder);
    //    删除单条订单
    int deletePurchaseOrder(@Param("purchase_order_id") String purchase_order_id);
    //    单条审核通过订单
    int updatePurchaseOrderAgree(@Param("purchase_order_id") String purchase_order_id);
    //    单条审核拒绝订单
    int updatePurchaseOrderRefuse(@Param("purchase_order_id") String purchase_order_id);

}
